package com.lyf.language.learn.atsgg.enumsample;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/5
 * @VERSION 1.0
 * @DESC
 * 自定义方式（JDK1.5之前）
 */
public class Status1 {
    private String msg;
    private Integer code;

    public final static Status1 SEVER_ERROR = new Status1("服务器内部错误",500);
    public final static Status1 CAN_NOT_FOUND = new Status1("请求URL错误",404);

    public Status1(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }

    public static Status1 getSeverError() {
        return SEVER_ERROR;
    }

    public static Status1 getCanNotFound() {
        return CAN_NOT_FOUND;
    }

}
